<?php



/**
 * Skeleton subclass for representing a row from the 'users' table.
 *
 *
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package    propel.generator.rcp
 */
class RcpUsers extends RcpBaseUsers
{	
  const ROLE_LECTURE = "LECTURE";

  public function isLecture() {
    foreach ($this->getUserRoless() as $role) {
       if ($role->getRoles()->getCode() == self::ROLE_LECTURE)
         return true;
    }
    return false;
  }
}
